package com.mapper;

import com.Dto.GuidanceRecordDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.GuidanceMessage;
import com.pojo.GuidanceSession;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
@Mapper
public interface GuidanceMessageMapper extends BaseMapper<GuidanceMessage> {
    boolean addSingleMessage(Integer from, Integer to, Integer sessionId, String content, LocalDateTime time, Integer type);

    List<GuidanceRecordDto> findBySessionId(Integer sessionId);

}
